package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/2 14:22
 * @DESCRIBE 笔记
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "note")
public class Note extends Model {
    private Integer id;

    private Integer userId;    // 笔记所属用户
    @Ignore
    private User    user;

    private Integer courseId;  // 笔记所属课程
    @Ignore
    private Course  course;

    private Integer taskId;    // 笔记所属课程任务
    @Ignore
    private Task    task;

    private Integer flag;      // 区分课程有没有添加笔记

    private String  content;   // 笔记内容
    private String  time;      // 笔记发布时间
//    private Integer share;     // 笔记是否分享 0不 1分
}
